package com.michaels;

import com.util.FileUtil;

import java.util.ArrayList;
import java.util.List;

public class SetTest {
    public static void main(String[] args) {

        List<String> categoryPaths = FileUtil.readFile("excel_paths.txt");
        List<String> categoryNames = FileUtil.readFile("excel_name.txt");
        List<String> fullPaths = new ArrayList<>(categoryPaths.size());
        for (int i = 0;i<categoryPaths.size();i++) {
            fullPaths.add(categoryPaths.get(i) + "//" + categoryNames.get(i));
        }
        FileUtil.writeFile("excel_full_paths.txt", fullPaths, false);

//        Set<String> setA = FileUtil.readFile2Set("all_paths_of_excel_2022-3-19.txt");
//        Set<String> setB = FileUtil.readFile2Set("tst00_full_taxonomy_path.txt");
//        setB.removeAll(setA);
//        List<String> collect = new TreeSet<>(setB).stream().filter(item->!item.contains("root//FGM Categories")).collect(Collectors.toList());
//        FileUtil.writeFile("path_not_found_of_item.txt", collect, false);
//        new TreeSet<>(setB).forEach(item-> {
////            if(!item.contains("root//FGM Categories")) {
////                System.out.println(item);
////            }
//            System.out.println(item);
//        });



    }
}
